package com.yst.webplugin.additional.mask;


import java.lang.annotation.*;

/**
 * annotation for mask
 */
@Target({ElementType.FIELD,ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Mask {
    /**
     * need mask field
     */
    String fieldName();

    /**
     * class of handler
     */
    Class<? extends IStringMask> handler() default MaskName.class;

    @Target({ElementType.FIELD})
    @Retention(RetentionPolicy.RUNTIME)
    @Documented
    @interface List{
        Mask[] value();
    }
}
